package chixing.day07.inherited;

public class Animal {
    private String animalName;
    public float animalWeight;

    public Animal(){}
    public Animal(String animalName, float animalWeight) {
        this.animalName = animalName;
        this.animalWeight = animalWeight;
    }

    public String getAnimalName() {
        return animalName;
    }

    public void setAnimalName(String animalName) {
        this.animalName = animalName;
    }

    public float getAnimalWeight() {
        return animalWeight;
    }

    public void setAnimalWeight(float animalWeight) {
        this.animalWeight = animalWeight;
    }

    @Override
    public String toString() {
        return "Animal{" +
                "animalName='" + animalName + '\'' +
                ", animalWeight=" + animalWeight +
                '}';
    }
}
